package com.luych.userCenter.entity;

import java.io.Serializable;
import java.util.Date;

public class UserRRole extends UserRRoleKey implements Serializable {
    private Date createDate;

    private Date updateDate;

    private static final long serialVersionUID = 1L;

    public UserRRole(String userId, String roleId, Date createDate, Date updateDate) {
        super(userId, roleId);
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public UserRRole() {
        super();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}